- is_show = defined?(show_path)
- organs = is_show.present? ? [current_user.admin_organ] : Organ.roots

.organ_tree
  - organs.each do |organ|
    ul style="margin: 0;"
      - if organ == @organ
        .item style="background-color: #eaeaea;"
          - if is_show.present?
            = link_to organ.name, organ_path(organ)
          - else
            = link_to organ.name, search_publics_path(:value => organ.fullname)
      - else
        .item
          - if is_show.present?
            = link_to organ.name, send(:organ_path, organ)
          - else
            = link_to organ.name, send(:search_publics_path, {:value => organ.fullname})
      = render :partial => 'snippets/organs/children', :locals => { :organ => organ, :is_show => is_show }

javascript:
  $(function(){
    toggle_tree($(".organ_tree"))
    // $(".organ_tree").find(".item").find(".toggle-icon").click()
    $(".organ_tree").find(".item:first").find(".toggle-icon").click()
  })
